Skip to content

fix(mcpx): conformance guard accepts CAP-11 empty extensions declaration - #2675

Merged
dezren39 merged 1 commit into
mainfrom
fix/mcpx-2653-extension-values
Oct 30, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/mcpx-2653-extension-values

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Fixes #2653.

What

The client-side conformance guard for messages-resulttype-extension-values (2026-07-28) failed on any presence of the extensions capability key. That side was stale: register CAP-11 (#1918) deliberately declares an empty extensions map on modern connections only — it names no extension, so the client owes no extension ResultType values. Declaring a named-but-unimplemented extension is the actual violation the guard exists for.

Change (test only, pkgs/mcpx/internal/conformance/messages_test.go)

  • Guard now fails only when the extensions map is non-empty (named extensions).
  • Comment names the CAP-11 exception.

Proof

  • go test ./internal/conformance/ -run TestMessagesClient -count=1 — ok
  • go test ./internal/conformance/ -count=1 (full package) — ok, 92s, no rows regressed

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

code#2653: TestMessagesClient/messages-resulttype-extension-values failed
deterministically on clean main. The guard treated the mere presence of the
extensions capability key as a violation. Register CAP-11 (#1918)
deliberately declares an EMPTY extensions map on modern connections only --
it names no extension, so the client owes no extension ResultType values.
Scope the guard to a non-empty map (named extensions), with the CAP-11
exception named in a comment. Full conformance package passes.
@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 09:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T09:57:14.062803Z 2b67d01 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1e6c707b-6e46-4731-aca9-1703ea577380
Commits

Reviewing files that changed from the base of the PR and between 72d9dd9 and 2b67d01.

Files selected for processing: 1
  • pkgs/mcpx/internal/conformance/messages_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dezren39
dezren39 merged commit 3bad045 into main Oct 30, 2026
1 check passed
@dezren39
dezren39 deleted the fix/mcpx-2653-extension-values branch October 30, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcpx conformance: TestMessagesClient messages-resulttype-extension-values fails on clean main

1 participant